{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}
<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<div class="form-div">
	<form action="javascript:searchUser()" name="searchForm">
		<img src="__PUBLIC__/Image/Admin/icon_search.gif" width="25" height="22" border="0" alt="SEARCH" />
		会员名称
		<input type="text" name="keyword" size="10" />
		<select name="process_type">
			<option value="-1">类型</option>
			<option value="0">充值</option>
			<option value="1">提现</option>
		</select>
		<select name="payment">
			<option value="">支付方式</option>
			<option value="余额支付">余额支付</option>
			<option value="银行汇款/转帐">银行汇款/转帐</option>
			<option value="支付宝">支付宝</option>      
		</select>
		<select name="is_paid">
			<option value="-1">到款状态</option>
			<option value="0">未确认</option>
			<option value="1">已完成</option>
			<option value="2">取消</option>
		</select>
		<input type="submit" value="搜索"/>
	</form>
</div>

<form method="POST" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table class="table" cellpadding="3" cellspacing="1" border="1" width="100%">
			<tr>
				<th><a href="javascript:listTable.sort('user_name', 'DESC'); ">会员名称</a>{$sort_user_name}</th>
				<th><a href="javascript:listTable.sort('add_time', 'DESC'); ">操作日期</a>{$sort_add_time}</th>
				<th><a href="javascript:listTable.sort('process_type', 'DESC'); ">类型</a>{$sort_process_type}</th>
				<th><a href="javascript:listTable.sort('amount', 'DESC'); ">金额</a>{$sort_amount}</th>
				<th><a href="javascript:listTable.sort('payment', 'DESC'); ">支付方式</a>{$sort_payment}</th>
				<th><a href="javascript:listTable.sort('is_paid', 'DESC'); ">到款状态</a>{$sort_is_paid}</th>
				<th>操作员</th>
				<th>操作</th>
			</tr>
			<volist name="account_list" id="item">
			<tr align="left">
				<td>
					<if condition="$item['user_name']">
						{$item.user_name}
					<else/>
						{$lang.no_user}
					</if>
				</td>
				<td align="left">{$item.add_date}</td>
				<td align="left">{$item.process_type_name}</td>
				<td align="left">{$item.surplus_amount}</td>
				<td>
					<if condition="$item['payment']">
						{$item.payment}
					<else/>
						N/A
					</if>
				</td>
				<td align="left">
					<if condition="$item['is_paid']">
						{$lang.confirm}
					<else/>
						{$lang.unconfirm}
					</if>
				</td>
				<td align="left">{$item.admin_user}</td>
				<td align="left">
					<if condition="$item['is_paid']">
						<a href="user_account.php?act=edit&id={$item.id}" title="{$lang.surplus}">
							<img src="__PUBLIC__/Image/Admin/icon_edit.gif" border="0" height="16" width="16" />
						</a>
					<else/>
						<a href="user_account.php?act=check&id={$item.id}" title="{$lang.check}">
							<img src="__PUBLIC__/Image/Admin/icon_view.gif" border="0" height="16" width="16" />
						</a>
						<a href="javascript:;" onclick="listTable.remove({$item.id}, '{$lang.drop_confirm}')" title="{$lang.drop}" >
							<img src="__PUBLIC__/Image/Admin/icon_drop.gif" border="0" height="16" width="16" />
						</a>
					</if>
				</td>
			</tr>
			</volist>
			<tr>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
			</tr>
		</table>
	</div>
</form>

<script type="text/javascript" language="JavaScript">
	onload = function(){
		// 开始检查订单
		startCheckOrder();
	}
	/**
	 * 搜索用户
	 */
	function searchUser(){
		listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
		listTable.filter['process_type'] = document.forms['searchForm'].elements['process_type'].value;
		listTable.filter['payment'] = Utils.trim(document.forms['searchForm'].elements['payment'].value);
		listTable.filter['is_paid'] = document.forms['searchForm'].elements['is_paid'].value;
		listTable.filter['page'] = 1;
		listTable.loadList();
	}
</script>




